<template>
  <BasicModal v-bind="$attrs" title="学院信息详情" @ok="closeModal" @register="registerModal">
    <Description @register="registerDesc" :column="1" size="middle" />
  </BasicModal>
</template>
<script lang="ts" setup>
  import { ref } from "vue";
  import { descSchema } from "./profile.data";
  import { BasicModal, useModalInner } from "/@/components/Modal";
  import { Description, useDescription } from "/@/components/Description";

  const descData = ref({});

  const [registerModal, { closeModal }] = useModalInner((data) => {
    descData.value = data;
  });

  const [registerDesc] = useDescription({
    data: descData,
    schema: descSchema,
  });
</script>
